find sum of all the digits of a number